home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc / OpenDoc Development / Debugging Support / OpenDoc Source Code / Storage / TransDlg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-22  |  2.0 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TransDlg.h
  3.  
  4.     Contains:    Class definition for Translation dialog object
  5.  
  6.     Owned by:    Craig Carper 
  7.  
  8.     Copyright:    © 1993-95 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <5>     3/28/95    CC        1229640: Added forPaste parameter to
  13.                                     ShowTranslateDialog.
  14.          <4>     3/28/95    CC        1233117: Removed unused ODStorageUnit
  15.                                     parameter from  ShowPartTranslateDialog.
  16.          <3>     3/27/95    CC        1229640: Renamed ShowTranslateDialog() to
  17.                                     ShowPartTranslateDialog().
  18.                                     Added ShowPartTranslateDialog().
  19.          <2>    12/13/94    CG        #1187128: Added StorageUnit and PartWrapper
  20.                                     parameters to ShowTranslateDialog().
  21.          <1>    11/17/94    CG        first checked in
  22.     To Do:
  23. */
  24.  
  25. #ifndef _TRANSDLG_
  26. #define _TRANSDLG_
  27.  
  28. #ifndef _PLFMDEF_
  29. #include <PlfmDef.h>
  30. #endif
  31.  
  32.  
  33. //=====================================================================================
  34. // Classes defined in this interface
  35. //=====================================================================================
  36.  
  37. class TranslationDialog;
  38.  
  39. //=====================================================================================
  40. // Classes used by this interface
  41. //=====================================================================================
  42.  
  43. class ODStorageUnit;
  44. class ODPartWrapper;
  45. class ODSession;
  46.  
  47. //=====================================================================================
  48. // Class TranslationDialog
  49. //=====================================================================================
  50.  
  51. class TranslationDialog
  52. {
  53. public:
  54.     
  55.     TranslationDialog();
  56.     
  57.     ODVMethod ~TranslationDialog();
  58.     
  59.     ODNVMethod void InitTranslationDialog(ODSession* session);
  60.                   
  61.     ODNVMethod ODBoolean ShowPartTranslateDialog(ODPartWrapper* partWrapper);
  62.  
  63.     // On return, selectedKind may be changed even if the result is kODFalse.
  64.     ODNVMethod ODBoolean ShowTranslateDialog(
  65.                             ODTypeList*    translateToList,
  66.                             ODUShort*    selectedKind,
  67.                             ODEditor*    editor,
  68.                             ODBoolean    canChangeEditor,
  69.                             ODBoolean    forPaste);
  70.  
  71. // Fields:
  72.     ODSession*         fSession;
  73. };
  74.  
  75. #endif /* _TRANSDLG_ */